package com.hiltony.web.mapper;

import com.hiltony.web.model.Diet;
import com.hiltony.web.model.Food;
import com.hiltony.web.model.FoodType;
import com.hiltony.web.model.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by YX on 2016/10/26.
 *
 */
public interface DietMapper {

    List<Diet> getDietList(Diet diet);

    int addDiet(Diet diet);

    int updateDiet(Diet diet);

    Diet getDietBean(Diet diet);

    List<Food> getFoodList(Food food);

    FoodType getFoodTypeInfo(FoodType food);

    int addFoodList(@Param("info")List<Food> foods);

    List<FoodType> getAllFootType();
}
